set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[9]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[8]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {zhu_num[0]}]
set_property PACKAGE_PIN J11 [get_ports {zhu_num[8]}]
set_property PACKAGE_PIN J13 [get_ports {zhu_num[7]}]
set_property PACKAGE_PIN K11 [get_ports {zhu_num[6]}]
set_property PACKAGE_PIN M11 [get_ports {zhu_num[5]}]
set_property PACKAGE_PIN L13 [get_ports {zhu_num[4]}]
set_property PACKAGE_PIN L12 [get_ports {zhu_num[9]}]
set_property PACKAGE_PIN J12 [get_ports {zhu_num[3]}]
set_property PACKAGE_PIN J14 [get_ports {zhu_num[2]}]
set_property PACKAGE_PIN K12 [get_ports {zhu_num[1]}]
set_property PACKAGE_PIN M12 [get_ports {zhu_num[0]}]

# sys clk
set_property IOSTANDARD LVCMOS33 [get_ports clk]
set_property IOSTANDARD LVCMOS33 [get_ports rst]
set_property PACKAGE_PIN G11 [get_ports clk]
set_property PACKAGE_PIN B6 [get_ports rst]
# led
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led_out[0]}]
set_property PACKAGE_PIN P11 [get_ports {led_out[7]}]
set_property PACKAGE_PIN P10 [get_ports {led_out[6]}]
set_property PACKAGE_PIN N11 [get_ports {led_out[5]}]
set_property PACKAGE_PIN N10 [get_ports {led_out[4]}]
set_property PACKAGE_PIN P13 [get_ports {led_out[3]}]
set_property PACKAGE_PIN P12 [get_ports {led_out[2]}]
set_property PACKAGE_PIN M14 [get_ports {led_out[1]}]
set_property PACKAGE_PIN N14 [get_ports {led_out[0]}]
# key
set_property IOSTANDARD LVCMOS33 [get_ports {key_in[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {key_in[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {key_in[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {key_in[0]}]
set_property PACKAGE_PIN N4 [get_ports {key_in[3]}]
set_property PACKAGE_PIN P5 [get_ports {key_in[2]}]
set_property PACKAGE_PIN M4 [get_ports {key_in[1]}]
set_property PACKAGE_PIN M5 [get_ports {key_in[0]}]
# seg
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg_out[0]}]
set_property PACKAGE_PIN A5 [get_ports {seg_out[7]}]
set_property PACKAGE_PIN B5 [get_ports {seg_out[6]}]
set_property PACKAGE_PIN A2 [get_ports {seg_out[5]}]
set_property PACKAGE_PIN B3 [get_ports {seg_out[4]}]
set_property PACKAGE_PIN A3 [get_ports {seg_out[3]}]
set_property PACKAGE_PIN A4 [get_ports {seg_out[2]}]
set_property PACKAGE_PIN C3 [get_ports {seg_out[1]}]
set_property PACKAGE_PIN D3 [get_ports {seg_out[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sel_out[0]}]
set_property PACKAGE_PIN B2 [get_ports {sel_out[7]}]
set_property PACKAGE_PIN B1 [get_ports {sel_out[6]}]
set_property PACKAGE_PIN C5 [get_ports {sel_out[5]}]
set_property PACKAGE_PIN C4 [get_ports {sel_out[4]}]
set_property PACKAGE_PIN E4 [get_ports {sel_out[3]}]
set_property PACKAGE_PIN D4 [get_ports {sel_out[2]}]
set_property PACKAGE_PIN F2 [get_ports {sel_out[0]}]
set_property PACKAGE_PIN F3 [get_ports {sel_out[1]}]
# uart
set_property IOSTANDARD LVCMOS33 [get_ports rx]
set_property IOSTANDARD LVCMOS33 [get_ports tx]
set_property PACKAGE_PIN E12 [get_ports     rx]
set_property PACKAGE_PIN F12 [get_ports tx]

# I2C
set_property PACKAGE_PIN E11 [get_ports scl]
set_property PACKAGE_PIN M10 [get_ports sda]
set_property IOSTANDARD LVCMOS33 [get_ports scl]
set_property IOSTANDARD LVCMOS33 [get_ports sda]
